package priv.mill.controller;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import priv.mill.entry.UserInfo;
import priv.mill.server.UserService;

@Controller
@RequestMapping("user")
public class UserController {

	@Autowired
	private UserService userService;
	
	private static final Logger logger = Logger.getLogger(UserController.class);
	@RequestMapping("showUser")
	@ResponseBody
	public UserInfo showUser(){
		try {
			return userService.getUser(4);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
		
	}
}
